1. 환경 설정하기
$ sudo yum install -y curl policycoreutils-python openssh-server openssh-clients$ sudo systemctl enable sshd
$ sudo systemctl start sshd$ sudo yum install -y postfix
$ sudo systemctl enable postfix
$ sudo systemctl start postfix$ curl -sS https://packages.gitlab.com/install/repositories/gitl-```sh $ sudo yum install -y gitlab-ce
## 2. GitLab 접속
```sh
$ vi /etc/gitlab/gitlab.rb
external_url 'http://<사용할 도메인 또는 IP주소>:<포트번호>'
$ sudo gitlab-ctl reconfigure # 설정파일 반영
# 참고
$ sudo gitlab-ctl start #gitlab 실행
$ sudo gitalb-ctl stop #gitlab 중지
$ sudo gitlab-ctl restart #gitlab 재실행$ sudo yum install firewalld
$ sudo systemctl enable firewalld
$ sudo systemctl start firewalld # 예를들어 사용할 포트가 8081일 경우
$ sudo firewall-cmd --permanent --add-port=8081/tcp$ sudo cat /etc/gitlab/initial_root_password
Password: V405t4veWSOrXae6OtlDqkBYb8oXrOXhn5KCwNrgpyU=